﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
    <meta name="apple-mobile-web-app-title" content="思路广惠">
    <title>积分流水</title>
    <meta content="telephone=no" name="format-detection" />
    <link rel="stylesheet" type="text/css" href="../../src/css/base.css?1.0" />
</head>
<body class="body-bg">
    <header class="header">
        <a href="javascript: history.go(-1)" class="head-le"><i class="iconfont icon-fanhui i2m"></i></a>
        <h1 class="header-txt">积分流水</h1>
    </header>
    <section> 
        <div id="water">
            
        </div>
    </section>

    <script type="text/html" id="waters">
        {{# if(d.length == 0){ }}
            <div class="centre">
               	<img  src="../../src/images/null-jifenliushuiweikong.png" /> 
                <p class="s13m">暂无积分流水</p>
            </div>  
        {{# }else{ }}  
            {{# for(var i = 0; i < d.length; i ++){ }}
            	<ul class="water-ul s12m top1rem">
	            	<li class="flexs-bw setup-btm pad-ud" >
	            		<span>收支类型: <strong>{{d[i].Flow_Type}}</strong> </span> <time>{{d[i].Flow_Time}}</time>
	            	</li>
	            	<li class="top1rem">
	            		<p>现金积分收支：<strong>{{d[i].Flow_CashFlow}}</strong></p>
	            		<p>现金积分余额：<strong>{{d[i].Flow_CashBalance}}</strong></p>
	            	</li>
	            	<li class="top1rem">
	            		<p>消费积分收支：<strong>{{d[i].Flow_TradeFlow}}</strong></p>
	            		<p>消费积分余额：<strong>{{d[i].Flow_TradeBalance}}</strong></p>
	            	</li>
	            	<li class="top1rem">
	            		<p>丝路积分收支：<strong>{{d[i].Flow_PointsFlow}}</strong></p>
	            		<p>丝路积分余额：<strong>{{d[i].Flow_PointsBalance}}</strong></p>
	            	</li>
	            </ul>  
            {{# } }} 
        {{# } }}
    </script>
    <script type="text/html" id="details">
        {{# if(d.length == 0){ }}
            <div class="centre">
               	<img  src="../../src/images/null-jifenliushuiweikong.png" /> 
                <p class="s13m">暂无明细记录</p>
            </div>  
        {{# }else{ }}  
         	<ul>
            {{# for(var i = 0; i < d.length; i ++){ }}
            	
	            	<li class="bg-fff top1rem pad1rem">
	            		<p class="s12m setup-btm col3">积分充值 {{d[i].Recharge_OperationTime}}</p>
	            		<p class="flexs-bw top1rem">
	            			<span>充值单号：{{d[i].Recharge_OrderNumber }}</span><span class="huef36">{{d[i].Recharge_Money }}</span>
	            		</p>
	            		<p class="flexs-bw top1rem">
	            			<span>交易单号：{{d[i].Recharge_OrderNumber}}</span><span>{{d[i].Recharge_Mark }}</span>
	            		</p>
	            	</li> 
	            
            {{# } }}
            </ul>
        {{# } }}
    </script>
    
		<script src="http://apps.bdimg.com/libs/laytpl.js/1.1/laytpl.js"></script>
		<script src="//cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    	<script src="../../src/js/all.js" type="text/javascript" charset="utf-8"></script>
    
    <script>   
    	var flags = silks.getByVal("flag");
    	if(!flags){
    		$.get(urls + "/WorkMembersFlow/GetMembersFlowByID", {
                MembersID: MembersID,
                PageIndex: 0,
                AppID: AppID,
                Token: Token,
                StartDate: "",
                EndDate: ""

           }, function (res) {
                if (res.Return_ID == 0) {
                    laytpl($("#waters").html()).render(res.Return_Data.PageData, function (html) {
                        $("#water").html(html);
                    });
                    
                }
            })
    	}else{
    		$.get(urls + "/WorkMembersRecharge/GetMembersRechargeByID", {
                MembersID: MembersID,
                OrderNumber: "",
                PageIndex: 0,
                AppID: AppID,
                Token: Token,
                StartDate: "",
                EndDate: ""
           }, function (res) { 
                if (res.Return_ID == 0) {
                    laytpl($("#details").html()).render(res.Return_Data.PageData, function (html) {
                        $("#water").html(html);
                    });
                    
                }
            })
    	}
            
 
    </script>
</body>
</html>